package com.bh.vehicle.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bh.common.annotation.Dict;
import com.bh.common.annotation.Excel;
import com.bh.common.core.domain.BhtmsBaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 车头信息对象 jc_vehicle_head
 *
 * @author slx
 * @date 2023-04-24
 */
@EqualsAndHashCode(callSuper = true)
@TableName("jc_vehicle_head")
@Data
public class JcVehicleHead extends BhtmsBaseEntity {


    private String buyAddress;

    /**
     *
     */
    @JsonFormat(timezone="GMT+8", pattern = "yyyy-MM-dd")
    private Date buyTime;


    private BigDecimal displacement;


    private Long emiStandard;


    private String engineVin;


    private BigDecimal gearBoxType;


    private BigDecimal maxKw;


    private BigDecimal maxPs;


    private BigDecimal maxTorque;


    private BigDecimal mileage;


    private BigDecimal oilSize;


    private Long oilType;


    private Long personNumber;


    private BigDecimal price;


    private BigDecimal pullTotalMass;


    private String size;


    private String source;


    private String supplierIphone;


    private String supplierName;


    private Long tireNumber;


    private String tireType;


    private BigDecimal totalMass;


    private BigDecimal vehicleWeight;


    private String vin;


    private String jcRegistrationId;


    @Dict(dictTable = "jc_sys_organization", dictLabel = "name", dictValue = "id")
    @Excel(name = "组织机构")
    private Long jcOrganizationId;

    @Excel(name = "组织机构")
    @TableField(exist = false)
    private String jcOrganizationIdDtLabel;


    /**
     * 第三方组织机构
     */
    @Dict(dictTable = "jc_sys_organization", dictLabel = "name", dictValue = "id")
    private String jcOrganizationIdTheir;

    @Excel(name = "第三方组织机构")
    @TableField(exist = false)
    private String jcOrganizationIdTheirDtLabel;


    private String driver;


    private String iphone;


    private Long jcDriverId;


    @Dict(dictTable = "jc_vehicle", dictLabel = "code", dictValue = "id")
    private Long jcVehicleId;

    @Excel(name = "车型")
    @TableField(exist = false)
    private String jcVehicleIdDtLabel;
    /**
     * 车辆所有权(自有、外包、租赁)
     */
    @Dict(dictValue = "vehicle_ownership")
    private String ownership;
}
